<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:zj="http://www.zju.edu.cn" exclude-result-prefixes="zj">
  <xsl:template name="zj:FormAttr">
    <xsl:attribute name="onsubmit">return false;</xsl:attribute>
  </xsl:template>
  <xsl:template name="zj:DefaultPost">
    <script>
      var source = "<xsl:value-of select="$zj:Source"/>";
      var url = "<xsl:value-of select="$zj:DSelfURL"/>";
      <xsl:comment><![CDATA[
      function Post(save)
      {
        PostFunc(url, source, save);
      }
      ]]></xsl:comment>
    </script>
  </xsl:template>
</xsl:stylesheet>
